home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
home
/
hb20d1
/
cleanup.bat
< prev
next >
Wrap
DOS Batch File
|
1986-05-27
|
3KB
|
122 lines
echo off
rem CLEANUP.BAT (optional [%1=hb]) Mar 29,86
rem cleans up Drive A:'s install progs
cls
echo
CLEANUP HomeBase DISK 1 PROGRAM
echo -------------------------------
echo Checking disk A:... (not erasing!)
a:
if not exist a:checkwp.com goto cl5
if not exist a:insquit.bat goto cl5
if exist a:ask.com goto cl7
:cl5
if not %1/ == hb/ goto cl6
echo BE CAREFUL! To ABORT press [Ctrl][Break] (upper right of keyboard.)
echo Otherwise, to erase HBGRAB, HBNBP, HBTM, and HBNBFIX
pause
goto cl22
:cl6
echo
INSQUIT.BAT, CHECKWP.COM and ASK.COM are missing on drive A:. Cannot
echo cleanup. The disk in Drive A: is probably not HomeBase DISK 1 or it has
echo already been cleaned. ("a:cleanup hb" will erase certain hb files.)
goto cl999
:cl7
if exist a:homebase.bat goto cl10
echo
HOMEBASE.BAT is missing. Perhaps the INSTALL program has not been run.
a:ask Ok to cleanup this disk anyway
if errorlevel 2 a:insquit
:cl10
a:checkwp a:
if errorlevel 1 echo DISK 1 is write protected -- Don't use the master!
if errorlevel 1 echo * Cleanup ABORTED *
if errorlevel 1 a:insquit xxx
cls
echo
This program will remove all INSTALL related programs that are no longer
echo needed. Run this after testing Disk 1 for proper installation.
a:ask Ok to CLEAN up all unneeded files (except READ.ME and AUTOEXEC.OLD)
if errorlevel 2 a:insquit
cls
echo
* * Cleaning Disk 1 * *
echo Please wait...
echo NOTE: HBGRAB.COM, HBPRINT.COM, HBTEMPLT.*, HBCLEAN.EXE and
echo HBNBFIX.EXE can also be erased if you do not use them, or
echo they can be put on a separate disk since they are used
echo only occasionally.
echo To erase them type "a:cleanup hb"
if not %1/ == hb/ goto cl24
a:ask OK to erase HBGRAB, HBPRINT, HBTEMPLT, HBCLEAN and HBNBFIX
if errorlevel 2 goto cl124
:cl22
echo
Erasing lesser used HB files...
del RUN_HB.BAT
del HBGRAB.COM
del HBPRINT.COM
del HBTEMPLT.EXE
del HBTEMPLT.HLP
del HBTEMPLT.NDX
del HBNBFIX.EXE
del HBCLEAN.EXE
:cl24
if not exist a:insquit.bat goto cl999
echo
Erasing Install files...
del INSTALL.BAT
del INSDONE.BAT
del INSQUIT.BAT
del INSHARD.BAT
del INSFLOP.BAT
del ASK.COM
del GPATH.COM
del CHECKWP.COM
del DISKFREE.COM
del MAKECOPY.BAT
del QUICKY.BAT
del AUTOFLOP.BAT
del AUTOHARD.BAT
del AUTOBOOT.BAT
echo
Keeping HOMEBASE.BAT, AUTOEXEC.OLD, READ.ME.
echo
* Cleanup Finished *
:cl999